<!--/*--><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <link id="mastercss" rel="stylesheet" href="images/style.css" type="text/css" media="screen"/>
    <script src="include/js/common.js" type="text/javascript"></script>
</head>
<body><!--*/-->
<!--{&header,${title!},内容管理${catpath!}&nbsp;&raquo;&nbsp;内容浏览}-->
<!--{!#system,common}-->
<!--{{xtp_0: echo $folder=={1}?'class="active"':''}}-->
<div id="newslisttab">
    <ul>
        <li></li>
        <li xtp="0,0"><a href="#{cms/content/${catid}/0}#"><img src="images/icon_folder.gif" align="absmiddle">
            发布箱</a></li>
        <li xtp="0,1"><a href="#{cms/content/${catid}/1}#"><img src="/images/icon_folder2.gif" align="absmiddle">
            待审箱</a></li>
        <li xtp="0,2"><a href="#{cms/content/${catid}/2}#"><img src="/images/icon_folder2.gif" align="absmiddle">
            退批箱</a></li>
        <li xtp="0,3"><a href="#{cms/content/${catid}/3}#"><img src="images/icon_folder.gif" align="absmiddle">
            草稿箱</a></li>
        <li xtp="0,-1"><a href="#{cms/content/${catid}/-1}#"><img src="/images/icon_folder3.gif" align="absmiddle">
            垃圾箱</a></li>
        <!--{if $catid > 0}-->
        <li style="float:right"><a href="#{cms/addcontent/${catid}}#">添加内容</a></li>
        <!--{/if}-->
        <li style="float:right" class="active"><a href="#{cms/content}#">内容浏览</a></li>
    </ul>
</div>
<form method="get" action="##?">

    <div class="block style4">
        <table cellspacing="3" cellpadding="3">
            <tr>
                <th><select name='field'>
                    <option value='subject' xtc="xt_gget('field')=='subject'">标题</option>
                    <option value='username'xtc="xt_gget('field')=='username'">用户名</option>
                    <option value='userid' xtc="xt_gget('field')=='userid'">用户ID</option>
                    <option value='itemid' xtc="xt_gget('field')=='itemid'">ID</option>
                </select></th>

                <td><input type="text" name="q" value="{=xt_gget('q')}" size="20" class="txt"/></td>
                <th>{!common_query}</th>
                <td colspan="3">
                    <select name="orderby">
                        <option value="">{!common_default_orderby}</option>
                        <option value="dateline" xtc="xt_gget('orderby')=='dateline'">建立时间</option>
                        <option value="updatetime" xtc="xt_gget('orderby')=='updatetime'">更新时间</option>
                    </select>
                    <select name="ordersc">
                        <option value="desc" xtc="xt_gget('ordersc')=='desc'">{!common_desc}</option>
                        <option value="asc" xtc="xt_gget('ordersc')=='asc'">{!common_asc}</option>
                    </select>
                    <select name="perpage">
                        <option value="20" xtc="xt_gget('perpage')=='20'">{!common_perpage,20}</option>
                        <option value="50" xtc="xt_gget('perpage')=='50'">{!common_perpage,50}</option>
                        <option value="100" xtc="xt_gget('perpage')=='100'">{!common_perpage,100}</option>
                    </select>
                    <input type="submit" name="searchsubmit" value="{!common_search}" class="submit">
                </td>
            </tr>
        </table>
    </div>
</form>
<form method="post" action="site.html#{/system/resource/update}#" enctype="multipart/form-data">
<!--{if $data}-->
    <table cellspacing='0' cellpadding='0' width='100%' class='listtable'>
        <tr>
            <th width="5%">选择</th>
            <th width="5%">ID</th>
            <th>标题</th>
            <th width="8%">内容分类</th>
            <th width="10%">添加人</th>
            <th width="130">更新日期</th>
            <th width="80">已发布数</th>
            <th width="80">状态</th>
            <th width="160">管理操作</th>
        </tr>

        <!--{loop $data $v}-->
        <tr>
            <td><input type="checkbox" name="contentid[]" value="${v[contentid]}"/></td>
            <td>${v[contentid]}</td>
            <td>${v[subject]}</td>
            <td>{=$categorys[$v['catid']]['catname']}</td>
            <td>${v[username]}</td>
            <td>{=date('Y-m-d H:i', $v['updatetime'])}</td>
            <td>${v[released]??!<span class="sred">未发布</span>}</td>
            <td>${v[status]}</td>
            <td align="center"><a href="#{/cms/editcontent/${v[contentid]}}#">修改</a>
                <!--{if $folder==0}-->
                | <a href="#{/cms/publish/${v[contentid]}}#">发布</a>
                <!--{elseif $folder==1}-->
                | 审批
                <!--{elseif $folder==-1}-->
                | 彻底删除
                <!--{/if}-->
            </td>
        </tr>
        <!--{/loop}-->
    </table>
    <!--{&page}-->
<!--{else}-->
<div class="bdrcontent">
    <p>{!common_not_data}</p>
</div>
<!--{/if}-->
</form>
<!--{&footer}-->
<!--/*-->
</body>
</html><!--*/-->